/* 全局样式 */
.app {
  font-family: 'Inter', sans-serif;
  margin: 0 auto;
  padding: 2rem;
  background-color: #90a9d1;
  color: #333;
}
/* 头部样式 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;

  h1 {
    color: #1890ff;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
  }
}
/* 加载状态样式 */
.loading {
  color: #1890ff;
  font-size: 1.2rem;
  text-align: center;
  margin: 2rem;
  animation: pulse 1.5s infinite;
}

/* 错误状态样式 */
.error {
  color: #ff4d4f;
  font-size: 1.1rem;
  text-align: center;
  margin: 2rem;
  padding: 1rem;
  background-color: #fff1f0;
  border-radius: 8px;
}

/* 动画关键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app {
    padding: 1rem;

    .header {
      flex-direction: column;
      align-items: flex-start;

      h1 {
        font-size: 2rem;
      }
    }

    .weather-container {
      padding: 1.5rem;
    }
  }
}
